Auto merge of #3348 - alexcrichton:fix-checksums, r=brson
authorbors <bors@rust-lang.org>
Fri, 2 Dec 2016 14:37:52 +0000 (14:37 +0000)
committerbors <bors@rust-lang.org>
Fri, 2 Dec 2016 14:37:52 +0000 (14:37 +0000)
commit71a6cc9c788adb83306161a1471fcbbdafe9e9a0
tree8f60bc224459cddfd83fb4dab50594fbc3ff3fdb
parent787591c4e45d5f1fd14c18a200df1114d8e65861
parentdf30da0c5702cb5b2fdb0df0d96047e477646366
Auto merge of #3348 - alexcrichton:fix-checksums, r=brson

Fix retrying crate downloads for network errors

Previously the `with_retry` loop was a little too tight where stale state about
the sha256 and data was kept out of the loop. Instead we need to reinitialize
these on each iteration of the loop to ensure that we correctly retry by
forgetting the data we previously downloaded for an aborted download attempt.